<%--
  @Kusal Samarakoon
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%--<script src="${pageContext.request.contextPath}/js/print.js" type="text/javascript"></script>--%>
<script src="${pageContext.request.contextPath}/js/printer.js" type="text/javascript"></script>
<%--<link rel="stylesheet" href="${pageContext.request.contextPath}/css/printDetailForm.css" media="print"/>--%>

<%--<script type="text/javascript">
    $(function () {

        $('#cancelBtnId').val($('#cancelBtn').val());
        $('#printBtnId').val($('#printBtn').val());

    });

</script>--%>

<s:include value="../../printCaller.jsp"/>

<div id="printDivId" class="form-outer">
    <div class="reportTitle">
        <h2><s:label value="%{getText('detailed_land_info.label')}"/> - <s:label
                value="%{getText('unalienated_land.label')}"/></h2>
        <hr/>
    </div>


    <div id="tabs">
        <%--<div id="printbtn" class="form-button-div right-align">
            <input class="printButton" type="button" id="printBtnId" onclick="getPortraitPrintOut();">
            <input class="printButton" type="button" id="cancelBtnId" onclick="goBack();">
        </div>--%>

        <div id="land-details">
            <h3><s:label value="%{getText('land_details.label')}"/></h3>
            <table class="width-100">
                <s:include value="../landDetailsReport.jsp"/>
            </table>
            <hr/>
        </div>

        <div id="holder-details">
            <h3><s:label value="%{getText('holder_details.label')}"/></h3>
            <table class="width-100">
                <tr>
                    <td><s:label value="%{getText('name_of_holder.label')}"/></td>
                    <td><s:property value="land.landHolder"/></td>
                    <%--<td colspan="3"><s:label value="State"/></td>--%>
                </tr>
            </table>
            <hr/>
        </div>

        <s:if test="land.occupiers.size() >0">
            <div id="occupier-details">
                <h3><s:label value="%{getText('occupier_details.label')}"/></h3>
                <table class="width-100">
                    <s:include value="../occupierDetailsReport.jsp"/>
                </table>
                <hr/>
            </div>

        </s:if>


    </div>
    <s:hidden id="pls_enter_name_of_the_land" value="%{getText('pls_enter_name_of_the_land')}"/>
    <s:hidden id="pls_enter_plan_no" value="%{getText('pls_enter_plan_no')}"/>
    <s:hidden id="pls_enter_lot_no" value="%{getText('pls_enter_lot_no')}"/>
    <s:hidden id="pls_enter_valid_no" value="%{getText('pls_enter_valid_no')}"/>
    <s:hidden id="pls_select_gn_division" value="%{getText('pls_select_gn_division')}"/>

    <s:hidden id="printBtn" value="%{getText('print.label')}"/>
    <s:hidden id="cancelBtn" value="%{getText('back.label')}"/>